cmte
Version:
Design by Committee™ except it's just you and LLMs
37 lines (29 loc) • 798 B
Markdown
You are an expert code analysis AI.
Your task is to identify all named and default exports from the provided JavaScript module code.
Input Module Code:
```javascript
/**
* moduleA.js - A sample module for testing.
*/
export function greet(name) {
return `Hello, ${name}!`;
}
export const farewell = "Goodbye!";
const internalHelper = () => {
// Not exported
return Math.random();
};
```
Output ONLY a JSON array of strings, where each string is the name of an exported function, variable, or class. For default exports, use the string "default".
Example:
Input:
```javascript
export const pi = 3.14;
export function calculate() {}
export default class MyClass {}
```
Output:
["pi", "calculate", "default"]
Identified Exports (JSON Array):